var uuid = require('uuid')

module.exports = class extends think.global.service {
  async indexAction() {
    var data = this.get()
    try{
      var result = await think.http.get(this.$url+'?id='+this.get().id, this.$config)
    } catch (e){
      this.ctx.fail(1000, e.message)
    }
    this.json(result.data)
  }
};